﻿namespace System.Workflow.ComponentModel.Compiler
{
    using System;
    using System.Collections.Specialized;
    using System.IO;

    internal static class StandardWorkflowAssemblies
    {
        private static StringCollection standardWorkflowLibraries = new StringCollection();

        static StandardWorkflowAssemblies()
        {
            standardWorkflowLibraries.AddRange(new string[] { "System.Workflow.ComponentModel.dll".ToLowerInvariant(), "System.Workflow.Runtime.dll".ToLowerInvariant(), "System.Workflow.Activities.dll".ToLowerInvariant(), "System.dll".ToLowerInvariant(), "System.Transactions.dll".ToLowerInvariant(), "System.Drawing.dll".ToLowerInvariant(), "System.Web.dll".ToLowerInvariant(), "System.Web.Services.dll".ToLowerInvariant() });
        }

        public static bool Contains(string fileName)
        {
            return standardWorkflowLibraries.Contains(Path.GetFileName(fileName).ToLowerInvariant());
        }
    }
}

